<?php 
namespace app\admin\validate;
use think\Validate;

	class Brand extends Validate
	{
		//当前验证规则
		protected $rule=[
			'bname'=>'unique:brand,bname,bid',
		];
		//验证提示信息
		protected $message = [
			'bname'=>[
				'unique' =>'该品牌已存在'
			],
		];
	}